package com.qf.service.impl;

import com.qf.dao.CityDao;
import com.qf.pojo.City;
import com.qf.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CityServiceImpl implements CityService {
    @Autowired(required = false)
    private CityDao cityDao;
    @Override
    public int add(City city) {
        return cityDao.add(city);
    }

    @Override
    public City selectOne(int cid) {
        return cityDao.selectOne(cid);
    }

    @Override
    public List<City> selectAll() {
        return cityDao.selectAll();
    }

    @Override
    public int delete(int cid) {
        return cityDao.delete(cid);
    }

    @Override
    public int update(City city) {
        return cityDao.update(city);
    }
}
